<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>JSF-Tutorial by Andy Bosch</title>
	<link rel="stylesheet" href="/JSF20Tutorial/styles.css" />
</h:head>

<h:body>

	<h3>Die UIData-Komponente</h3>
	<i>Dieses Beispiel verdeutlicht die Verwendung des dataTable-Tags
		anhand einer Preisliste:</i>

	<h:dataTable first="#{pricelistBean.counter}" rows="10" var="current"
		value="#{pricelistBean.products}">

		<f:facet name="header">
			<h:outputText value="#{pricelistBean.name}" />
		</f:facet>
		<h:column>
			<h:outputText value="#{current.name}" />
		</h:column>
		<h:column>
			<h:outputText value="#{current.price}" />
		</h:column>


		<f:facet name="footer">
			<h:panelGroup>
				<h:commandButton value="Zurück" action="#{pricelistBean.backward}" />
				<h:commandButton value="Vor" action="#{pricelistBean.forward}" />
			</h:panelGroup>
		</f:facet>
	</h:dataTable>


</h:body>

</html>